<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>
<?php 
    if(isset($this->pageTitle)){
        echo $this->pageTitle;
    }else {
        $config = config::get('info');
        echo $config['pageTitle'];
    }
 ?>
</title>
<!--
-->
<link rel="stylesheet" type="text/css" href="/css/superfish-admin.css" media="screen">
<link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen" title="default" />
<link rel="stylesheet" href="/js/jquery/themes/ui-darkness/jquery.ui.all.css">
<link rel="stylesheet" href="/js/jquery/themes/demos.css">

<link rel="stylesheet" href="/css/osx.css" type="text/css" media="screen" title="default_popup" />
<!-- [Self] -->
<script src="/js/common.js" type="text/javascript"></script> 
<script src="/js/jx.js" type="text/javascript"></script>
<script src="/js/rc.js" type="text/javascript"></script>
<script src="/js/shortcut.js" type="text/javascript"></script>
<?php 
	if($this->enableJquery == "")
	{
 ?>
<script src="/js/jquery/jquery-1.6.2.js" type="text/javascript"></script> 
<script src="/js/jquery/jquery.ui.core.js" type="text/javascript"></script>
<script src="/js/jquery/date_picker/jquery.ui.datepicker.js"></script>
<?php
	}
 ?>
<!-- Custom jquery scripts -->
<script type="text/javascript" src="/js/hoverIntent.js"></script>
<script type="text/javascript" src="/js/superfish.js"></script>
<!-- <script type="text/javascript" src="/js/jquery.simplemodal-1.4.3.js"></script>-->
<script type="text/javascript" src="/js/jquery.simplemodal.js"></script>
<script type="text/javascript" src="/js/basic.js"></script>
<script type="text/javascript" src="/js/osx.js"></script>
<script type="text/javascript">
jQuery(function(){
	jQuery('ul.sf-menu').superfish();
});
shortcut.add("Ctrl+Shift+F",function() {
	common.loadFinder('none');
});
shortcut.add("Ctrl+Shift+S",function() {
	save();
});
shortcut.add("Ctrl+Shift+N",function() {
	add();
});

window.onpopstate = function(event) {  
   
	if(!event.state){
		//common.loadAjax();
	}else{
		 common.disableAllGlobalButton();
		 var st = event.state;
		 if(st['foo'] == 'finder'){
                common.loadAjax();
		 }else{
			common.loadAjax();
		}
	}
}
</script>

<style type="text/css">
	.nav li {
		float: left;
		height: auto;
		margin: 0;
		padding: 0;
	}
</style>
</head>
<body>
<textarea id="log" style="display:none;width:100%;height:200px"></textarea>
<input type="hidden" id="isFirstButton" value="0" />
<div class="clear">&nbsp;</div>
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

		<!-- start nav-right -->
		<div id="nav-right">
		<?php
            global $auth;
            $user = $auth->getIdentity();
            if((int)$user->ID_U != 0)
            {
        ?>
			<div class="nav-divider">&nbsp;</div>
			<a href="<?php echo $this->baseUrl("/auth/logout/index");?>" id="logout"><img src="/images/shared/nav/nav_logout.gif" width="100" height="14" alt="" /></a>
			<div class="clear">&nbsp;</div>

			<!--  start account-content -->
			<div class="account-content">
			</div>
			<!--  end account-content -->
		<?php } else { ?>

            <div class="nav-divider">&nbsp;</div>
			<div class="nav-divider">&nbsp;</div>
			<a href="<?php echo $this->baseUrl("/auth/logout/index");?>" id="logout"><img src="/images/shared/nav/dang-nhap.gif" width="100" height="14" alt="" /></a>
			<div class="clear">&nbsp;</div>

			<!--  start account-content -->
			<div class="account-content">
			</div>
			<!--  end account-content -->

        <?php } ?>
		</div>
		<!-- end nav-right -->

		<div class="nav">
		<ul class="sf-menu">	
			<li class="current">
				<a href="/admin/index/index">Quản lý Deal</a>
			</li>
			<div class="nav-divider"></div>
             <li class="current">
             	 <a href="/contact/admin/index">Quản lý Store</a>
			</li>
			<div class="nav-divider"></div>
            <li class="current">
                <a href="/admin/users/index">Quản lý người dùng</a>
			</li>
			<div class="nav-divider"></div>
			<li class="current">
				<a href="/admin/roles/index">Quản lý phân quyền</a>
			</li>
			<div class="nav-divider"></div>
			<li class="current">
				<a href="#">Cài đặt chung</a>
			</li>
			<div class="nav-divider"></div>
			<li class="current">
				<a href="/generate/index/index">Xây dựng module</a>
			</li>
			
		</ul>
		</div>

</div>

<!--  start nav-outer -->
</div>
<!--  start nav-outer-repeat................................................... END -->
 
<!-- start content-outer -->
<div id="content-outer">
<!-- start content -->
	<div id="content">
		<div id="page-heading">
			<div id="page-heading-title" ><h1><?=$this->maintitle?></h1></div>
			<!-- <div id="page-heading-button">
				<div id="blank-global-button"></div>
				<div class="item" style="display:none" onclick="del()" id="itemButton0">
					<div id="delete-global-button"></div>
					<div class="button-title">Xóa</div>
				</div>
				<div class="item" style="display:none" onclick="add()" id="itemButton1" title="Ctrl+Shift+N">
					<div id="addnew-global-button"></div>
					<div class="button-title-addnew" >Thêm mới</div>
				</div>
				<div class="item" style="display:none" onclick="save()" name="SAVE" id="itemButton2" title="Ctrl+Shift+S">
					<div id="save-global-button"></div>
					<div class="button-title">Lưu</div>
				</div>
				<div class="item" style="display:none" onclick="back()" id="itemButton3">
					<div id="back-global-button"></div>
					<div class="button-title">Trở lại</div>
				</div>
				<div class="item" style="display:none" onclick="help()" id="itemButton4">
					<div id="help-global-button"></div>
					<div class="button-title-addnew">Trợ giúp</div>
				</div>
			</div> -->
		</div>
		
		

		<table border="0" width="100%"  cellpadding="0" cellspacing="0" id="content-table">
		<tr>
			<th rowspan="3" class="sized"><img src="/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
			<th class="topleft"></th>
			<td id="tbl-border-top">&nbsp;</td>
			<th class="topright"></th>
			<th rowspan="3" class="sized"><img src="/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
		</tr>
		<tr>
			<td id="tbl-border-left"></td>
			<td>
			<!--  start content-table-inner -->
			<div id="content-table-inner">
			
			<table border="0" width="100%" cellpadding="0" cellspacing="0">
			<tr valign="top">
			<td>
			<!--  start table-content  -->
				<div id="table-content">
					<h2><?=$this->title?> </h2>
					<h3><?=$this->subtitle?></h3>
					<!-- locate REGION_HARD_FORM| -->
					
					<div id="hard_content">
						<!-- locate REGION_HARD_CONTENT| -->
					   
					</div>
					<div id="main_content" >
						<!-- locate REGION_CONTENT| -->
						<?php echo $this->layout()->content ?>
					</div>
				</div>
			</td>
			<td>	
			

		</td>
		</tr>
		<tr>
		<td><img src="/images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
		<td></td>
		</tr>
		</table>
		 
		<div class="clear"></div>
		 

		</div>
		<!--  end content-table-inner  -->
		</td>
		<td id="tbl-border-right"></td>
		</tr>
		<tr>
			<th class="sized bottomleft"></th>
			<td id="tbl-border-bottom">&nbsp;</td>
			<th class="sized bottomright"></th>
		</tr>
		</table>



		<div class="clear">&nbsp;</div>

	</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer -->

 

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
        </div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
</body>
</html>